﻿using 日志Framework4._0;

namespace 浏览器客户端.Script
{
    public class LogScript : ILogger
    {
        private readonly Log _log = new Log();

        public void Info(string message, string action = "系统消息")
        {
            _log.Info(message, action);
        }

        public void Track(string message, string action = "系统消息")
        {
            _log.Track(message, action);
        }

        public void Warning(string message, string action = "系统消息")
        {
            _log.Warning(message, action);
        }

        public void Error(string message, string action = "系统消息")
        {
            _log.Error(message, action);
        }
    }

    public interface ILogger
    {
        void Info(string message, string action);
        void Warning(string message, string action);
        void Error(string message, string action);
    }
}
